package com.example.youhuo.a_fragment

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import com.example.mvp.view.BaseFragment
import com.example.myapplication.R
import com.example.youhuo.entity.BaseEntity
import com.example.youhuo.mvp.contract.LjlContract
import com.example.youhuo.mvp.presenter.LjlPresenter

class Mine_Fragment : BaseFragment<LjlPresenter>(),LjlContract.LjlView {
    private val linearlayout: LinearLayout by lazy { view1.findViewById<LinearLayout>(R.id.linearlayout) }
    private val mineName: TextView by lazy { view1.findViewById<TextView>(R.id.mine_name) }
    private val mineHead: ImageView by lazy { view1.findViewById<ImageView>(R.id.mine_head) }
    private val mineShequ: TextView by lazy { view1.findViewById<TextView>(R.id.mine_shequ) }
    private val mineShop: TextView by lazy { view1.findViewById<TextView>(R.id.mine_shop) }



    override fun findlayout(): Int {
        return R.layout.fragment_five_
    }

    override fun initView() {
        var stringExtra = activity!!.intent.getStringExtra("name")
        if (stringExtra != null) {
            Log.e("ljl",stringExtra)
        }else{
            Log.e("ljl","asdasd")
        }
    }


    override fun initData() {

    }

    override fun showmsg(entity: BaseEntity) {

    }






}